<%@ taglib prefix="security" uri="http://www.springframework.org/security/tags" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: 27236
  Date: 2021/8/21
  Time: 22:49
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <meta charset="utf-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
    <meta name="viewport" content="width=device-width, initial-scale=1"/>
    <title>主页</title>
    <link href="${pageContext.request.contextPath}/static/css/bootstrap.min.css" rel="stylesheet">
    <script src="${pageContext.request.contextPath}/static/js/jquery-3.6.0.js"></script>
    <script src="${pageContext.request.contextPath}/static/js/bootstrap.min.js"></script>

</head>
<body>
<div class="container" >
    <form method="post" action="${pageContext.request.contextPath}/Teacher/autoAdd">
        <security:csrfInput/>
        <table class="table">
            <div class="form-group">
                <label for="analyze">试卷介绍：</label>
                <input type="text" name="analyze" class="form-control" id="analyze" placeholder="请输入内容"/>
            </div>
            <tr class="success">
                <th><input type="checkbox" id="firstCb"></th>
                <th>编号</th>
                <th>类型</th>
                <th>描述</th>
                <th>选择题数</th>
                <th>填空题数</th>
                <th>简答题数</th>
            </tr>
            <c:forEach items="${topicType}" var="topicType" varStatus="s">
                <tr>
                    <td><input type="checkbox" name="topicTypeIds" value="${topicType.id}"></td>
                    <td>${s.count}</td>
                    <td>${topicType.name}</td>
                    <td>${topicType.context}</td>
                    <td>${topicType.choiceCount}</td>
                    <td>${topicType.fillCount}</td>
                    <td>${topicType.shortAnswerCount}</td>
                </tr>
            </c:forEach>
        </table>
        选择题 : <input type="number" name="choiceCount" value="0"><br>
        填空题 : <input type="number" name="fillCount" value="0"><br>
        简答题 : <input type="number" name="shortCount" value="0"><br><br>
        总分 :<br>
        <input type="number" name="score"><br><br>
        <button type="submit" class="btn btn-default">确定</button>
    </form>
</div>
</body>
</html>
